#ifndef GAMEOBJ_HH_
# define GAMEOBJ_HH_

# include "../physic/object.hh"

class GameObj : public Object
{
public:
  GameObj (int id, Vector3f pos, Vector3f size, unsigned hp_max, int playerid = 0);
  virtual ~GameObj ();

  unsigned hp () const { return hp_; }
  bool loose_hp (unsigned damage);
  void gain_hp (unsigned amount);
protected:
  unsigned hp_;
  unsigned hp_max_;
};

#endif /// !GAMEOBJ_HH_
